﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Motoball.screenmanager;

namespace Motoball.screens
{
    public class RingSizeSelectionScreen : OptionsSelectScreen
    {
        bool[] ringSizeEnabled;
        public GameScreen followingScreen;

        public RingSizeSelectionScreen(string screenName)
            : base(screenName)
        {
            ringSizeEnabled = new bool[3];
            ringSizeEnabled[0] = true;
            ringSizeEnabled[1] = false;
            ringSizeEnabled[2] = false;
        }

        public override void LoadContent()
        {
            //AddItem("Models\\Exit_Button");
            //AddItem("Models\\Exit_Button");
            //AddItem("Models\\Exit_Button");
        }

        protected override bool DoSomething()
        {
            switch (TopItem)
            {
                case 0:
                case 1:
                case 2:
                    if (ringSizeEnabled[TopItem])
                    {
                        ContentStorage.SetRingSizeByDefault(TopItem);
                        return true;
                    }
                    else
                        return false;
                default:
                    return false;
            }
        }
    }
}
